<template>
  <div class="wrap">
    <div class="subscribe">
      <div class="subscribe-list-wrapper">
        <div class="subscribe-content">
          <div class="subscribe-content-banner">
            <div class="subscribe-content-banner-head">
              <h2>封面故事</h2>
              <p>
                <i></i>
              </p>
            </div>
            <div class="subscribe-content-banner-content">
              <div
                class="subscribe-content-banner-content-left"
                @click="goToPagePlay"
              >
                <!-- 给图片添加点击事件 -->
                <img
                  src="https://wwcdn.weixin.qq.com/node/wework/images/20220722B2.d4b6cad7ec.jpg"
                  alt=""
                />
                <h2>“玩”的能力，是怎样被我们弄丢的？</h2>
                <p></p>
                <div></div>
              </div>
              <div class="subscribe-content-banner-content-right">
                <div @click="goToPageTalk">
                  <img
                    src="https://wwcdn.weixin.qq.com/node/wework/images/20230324B2.721cfd28eb.jpg"
                    alt=""
                  />
                  <h2>这几种暗含攻击的沟通方式，你肯定也吃过哑巴亏……</h2>
                  <div></div>
                </div>
                <div @click="goToPageTravel">
                  <img
                    src="https://wwcdn.weixin.qq.com/node/wework/images/20240608W4.cc7cb8711d.jpg"
                    alt=""
                  />
                  <h2>
                    4月最适合方向旅行的12个地方，再忙也值得你挑一个去发呆！
                  </h2>
                  <div></div>
                </div>
              </div>
            </div>
          </div>
          <!-- 今日推荐 -->
          <div class="subscribe-content-recommend">
            <div class="subscribe-content-recommend-head">
              <h2>今日推荐</h2>
            </div>
            <div>
              <div class="subscribe-article" @click="goToPageKids">
                <div class="subscribe-article-left">
                  <h3>我们为什么要生孩子？</h3>
                  <p style="-webkit-box-orient: vertical">
                    【预约】今晚武志红直播🌟摆脱自我攻击束缚，重塑内在力量💪
                    作者 | 天雅
                    上个月我写了《“新型婆媳关系”正在流行：孩子生了，老公就位，婆婆闭嘴……》，
                    讲述了宝宝诞生后，我和先生、公公婆婆在家庭角色上的调整与转变，以及权力的让渡。
                    有读者留言：
                    “说得过于理想化，两代人让渡权力的问题，牵涉到思维、认知、习惯、边界，甚至于面子等复杂的人性问题，岂能
                  </p>
                  <div class="subscribe-article-opera">
                    <span></span>
                    <span></span>
                  </div>
                </div>
                <div class="subscribe-article-right">
                  <img
                    src="https://mmbiz.qpic.cn/mmbiz_jpg/IZKicxnz4NV9cFgrOW…cyIXUkfsdiaG9Y91ymT74NfIGKb0aaSnGpqmkIOAdVltZXA/0"
                    class="widthsuit"
                    alt=""
                  />
                </div>
              </div>
            </div>
            <div>
              <div class="subscribe-article" @click="goToPageFace">
                <div class="subscribe-article-left">
                  <h3>脸，无处不在丨面孔空想性错视</h3>
                  <p style="-webkit-box-orient: vertical">
                    作者 | 姜林屾 不知道你是否有过类似的体验：
                    在工作间埋头苦干许久，一抬头，忽然发现一张脸正兴致勃勃看着你……
                    (图源网络，侵删)
                    倒杯饮料压压惊，啊这……气泡怎么有鼻子有眼睛的？
                    (图源百家号/问号邱，侵删)
                    既然工作不下去了，干脆打开电脑看看纪录片休息一下，刚好放到海洋世界，刚瞅一眼就吓得一抖，啊啊啊这是什么魔鬼镜头……
                  </p>
                  <div class="subscribe-article-opera">
                    <span></span>
                    <span></span>
                  </div>
                </div>
                <div class="subscribe-article-right">
                  <img
                    src="https://mmbiz.qpic.cn/mmbiz_jpg/sJIr7qM02GYyHyVjWQ…YSwK5WD6XuvqrMtrAnnUga2Z3yJr68gPYozZWicwLO6IUAA/0"
                    class="widthsuit"
                    alt=""
                  />
                </div>
              </div>
            </div>
            <div></div>
          </div>
          <!-- 悦读精品文章 -->
          <div class="subscribe-content-special">
            <div class="subscribe-content-special-head">
              <h2>悦读精选文章</h2>
            </div>
            <ul class="subscribe-content-special-content">
              <li @click="gotoPageAI">
                <div>
                  <img
                    src="https://mmbiz.qpic.cn/sz_mmbiz_jpg/PapSXM8USqUnHqOWSuhx6xEHhZuPDn7sBhbCvB5b8fKNUibtU6pmJkaajqFfz4cYmnYQBjbAicvXr19GToEicKZnQ/0"
                    alt=""
                  />
                </div>
                <h3 style="-webkit-box-orient: vertical">
                  300元一学期，谁在教县城老人写AI“prompt”
                </h3>
                <p style="-webkit-box-orient: vertical">
                  啥？老年大学已经这么紧跟时代了？ 文｜冰点编｜陈梅希
                  不久前，我回了一趟湖北老家。
                  一天下午，只见妈妈急匆匆地出了门，丢下一句：“老年大学的AI
                  课要赶不及了！”
                  啥？老年大学已经这么紧跟时代了？连我们这个三线城市都开上了AI
                  课？ 我的妈妈是一名非常善于使用智能手机的退休人士，很多APP
                  甚至用得比我都顺溜。她接触到
                  AI，我也不算太意外。但她的“大学同学”里
                </p>
              </li>
              <li @click="gotoPageBook">
                <div>
                  <img
                    src="https://mmbiz.qpic.cn/sz_mmbiz_jpg/PapSXM8USqUnHqOWSuhx6xEHhZuPDn7sBhbCvB5b8fKNUibtU6pmJkaajqFfz4cYmnYQBjbAicvXr19GToEicKZnQ/0"
                    alt=""
                  />
                </div>
                <h3 style="-webkit-box-orient: vertical">
                  推荐四本有大量书评的书
                </h3>
                <p style="-webkit-box-orient: vertical">
                  马上又到世界读书日了，跟大家推荐几本有大量书评的书。一共四本，前两本质量很高，后两次差一点，但作者可以算上得职业阅读者，会非常开眼界，能知道很多完全不会有机会接触和阅读的书籍。
                </p>
              </li>
              <li @click="gotoPageRelax">
                <div>
                  <img
                    src="https://mmbiz.qpic.cn/sz_mmbiz_jpg/PapSXM8USqUnHqOWSuhx6xEHhZuPDn7sBhbCvB5b8fKNUibtU6pmJkaajqFfz4cYmnYQBjbAicvXr19GToEicKZnQ/0"
                    alt=""
                  />
                </div>
                <h3 style="-webkit-box-orient: vertical">
                  95后“躺平规划师”：教人躺平，财务自由
                </h3>
                <p style="-webkit-box-orient: vertical">
                  每个打工人心中大概都闪过躺平的念头。
                </p>
              </li>
            </ul>
            <p class="subscribe-content-special-more">
              <!-- 更多内容 -->
              <!-- 更多内容 -->
              <i class="xm_icons xm_icons_RightArrow">></i>
            </p>
            <div class="subscribe-toast" style="display: none">
              <div class="subscribe-toast-wrap">
                <div class="subscribe-toast-head">
                  <span>x</span>
                </div>
                <div class="subscribe-toast-content">
                  <div class="subscribe-toast-content-status">
                    <i></i>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";

const router = useRouter();

const goToPagePlay = () => {
  router.push({ name: "PagePlay" });
};

const goToPageTalk = () => {
  router.push({ name: "PageTalk" });
};

const goToPageTravel = () => {
  router.push({ name: "PageTravel" });
};

const goToPageKids = () => {
  router.push({ name: "PageKids" });
};

const goToPageFace = () => {
  router.push({ name: "PageFace" });
};

const gotoPageAI = () => {
  router.push({ name: "PageAI" });
};

const gotoPageRelax = () => {
  router.push({ name: "PageRelax" });
};

const gotoPageBook = () => {
  router.push({ name: "PageBook" });
};
</script>

<style scoped>
/* 样式保持不变 */
</style>

<style scoped>
.subscribe,
.wrap {
  height: 100%;
  min-width: 960px;
}
.wrap {
  overflow: hidden;
  position: relative;
}
@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe {
    padding: 0 20px;
  }
}
.subscribe {
  background: #f5f6f7;
  box-sizing: border-box;
  display: flex;
  overflow: auto;
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe > div:first-child {
    min-width: 680px;
  }
}
.subscribe .subscribe-list-wrapper {
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  height: calc(100% - 40px);
  margin-top: 20px;
  overflow: auto;
  padding-top: 0;
}

.subscribe-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.05);
  color: #959da6;
}
@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content {
    padding: 40px 50px;
    width: 680px;
  }
}

.subscribe-content-banner-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.subscribe-content-banner-head > h2 {
  color: #2e3033;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.subscribe-content-banner-head > p {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 18px;
}

.subscribe-content-banner-head > p > a {
  color: #5c6166;
  font-size: 12px;
  line-height: 18px;
  margin-right: 9px;
  margin-top: 2px;
  text-align: right;
}

.subscribe-content-banner-head > p > i {
  background: url(https://res.wx.qq.com/t/webmail/webmail/res/static/images/base/style/subscribe/subscribe-banner-more.05366aa.png)
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 15px;
  width: 15px;
}

.subscribe-content-banner-content {
  display: flex;
  justify-content: space-between;
}

.subscribe-content-banner-content-left {
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-banner-content-left {
    height: 360px;
    overflow: hidden;
    width: 360px;
  }
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-banner-content-left > img {
    width: 360px;
  }
}

.subscribe-content-banner-content-left > h2 {
  bottom: 120px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  line-height: 32px;
  margin: 0 20px;
  position: absolute;
  z-index: 1;
}

.subscribe-content-banner-content-left > p {
  -webkit-line-clamp: 3;
  -moz-line-clamp: 3;
  line-clamp: 3;
  box-orient: vertical;
  bottom: 40px;
  color: #fff;
  display: -webkit-box;
  display: -moz-box;
  flex-direction: column;
  font-size: 12px;
  height: 57px;
  line-height: 19px;
  margin: 0 20px;
  opacity: 0.7;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  z-index: 1;
}

.subscribe-content-banner-content-left > div {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), #000);
  height: 360px;
  left: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  transition: all 0.4s;
  width: 100%;
}

.subscribe-content-banner-content-right {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-banner-content-right {
    width: 310px;
  }
}

.subscribe-content-banner-content-right > div {
  border-radius: 4px;
  height: 175px;
  overflow: hidden;
  position: relative;
}

.subscribe-content-banner-content-right > div > img {
  margin-top: -25%;
  width: 100%;
}

.subscribe-content-banner-content-right > div > h2 {
  bottom: 40px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  margin: 0 20px;
  position: absolute;
  z-index: 1;
}

.subscribe-content-banner-content-right > div > div {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), #000);
  height: 175px;
  left: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  transition: all 0.4s;
  width: 100%;
}

.subscribe-content-recommend > div {
  margin-top: 30px;
}

.subscribe-article {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.subscribe-article-left {
  flex-grow: 1;
  margin-right: 35px;
  overflow: auto;
}

.subscribe-article-left > h3 {
  color: #2e3033;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}

.subscribe-article-left > p {
  -webkit-line-clamp: 3;
  -moz-line-clamp: 3;
  line-clamp: 3;
  box-orient: vertical;
  color: #959da6;
  display: -webkit-box;
  display: -moz-box;
  font-size: 13px;
  height: 69px;
  line-height: 23px;
  max-width: 745px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-article-opera {
  display: flex;
  margin-top: 10px;
  position: relative;
}

.subscribe-article-opera > span {
  align-items: center;
  color: #959da6;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  line-height: 18px;
  width: 60px;
}

.subscribe-article-right {
  border-radius: 4px;
  height: 120px;
  min-width: 155px;
  overflow: hidden;
  position: relative;
}

.subscribe-article-right > img {
  border-radius: 4px;
}

.widthsuit {
  height: 120px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.subscribe-content-tag {
  align-items: center;
  display: flex;
  justify-content: space-between;
  line-height: 32px;
  margin-top: 30px;
  position: relative;
}

.subscribe-content-special {
  background-image: linear-gradient(-44deg, #2e3033, #2e3033);
  border-radius: 5px;
  margin: 35px 0 0 -30px;
  padding: 30px;
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-special {
    width: 680px;
  }
}

.subscribe-content-special-head {
  display: flex;
  justify-content: space-between;
}

.subscribe-content-special-head > h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.subscribe-content-special-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.subscribe-content-special-content > li {
  cursor: pointer;
  overflow: hidden;
}

@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-special-content > li,
  .subscribe-content-special-content > li > img {
    width: 210px;
  }
}

.subscribe-content-special-content > li > div {
  border-radius: 4px;
  height: 130px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.subscribe-content-special-content > li > div > img.autowidth {
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.subscribe-content-special-content > li > div > img {
  position: absolute;
}

.subscribe-content-special-content > li > h3,
.subscribe-content-special-content > li > p {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  margin-top: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subscribe-content-special-content > li > h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
}

.subscribe-content-special-content > li > p {
  color: #ddd;
  font-size: 12px;
  height: 34px;
}
.subscribe-content-special-content > li > h3,
.subscribe-content-special-content > li > p {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  margin-top: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-content-special-more {
  align-items: center;
  color: #c6a05e;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  height: 18px;
  line-height: 18px;
  margin-top: 25px;
  vertical-align: middle;
}

body,
dd,
dl,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
legend,
p,
pre {
  margin: 0;
}

.subscribe-content-special-more > i {
  color: #c6a05e;
  font-size: 16px;
  vertical-align: middle;
}

.subscribe-toast {
  background: rgba(0, 0, 0, 0.3);
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

.subscribe-toast-wrap {
  background: #fff;
  border: 1px solid #d4d7d9;
  border-radius: 12px;
  left: 50%;
  padding: 5px 20px 30px 35px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
}

.subscribe-toast-head {
  text-align: right;
}

.subscribe-toast-head > span {
  color: #959da6;
  cursor: pointer;
  font-size: 30px;
  font-weight: 100;
}

.subscribe-toast-content {
  border-bottom: 1px solid #e6e8eb;
  padding: 0 0 25px;
}

.subscribe-toast-content-status {
  display: flex;
}

.subscribe-toast-content-status > i {
  background: url()
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 22px;
  width: 22px;
}

.subscribe-toast-content-status > span {
  color: #2e3033;
  font-size: 16px;
  letter-spacing: 0;
  margin-left: 15px;
}

.subscribe-toast-content-word {
  margin-top: 15px;
  text-align: left;
}

.subscribe-toast-content-word > span {
  color: #959da6;
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 18px;
  margin-bottom: 5px;
}

.subscribe-toast-foot {
  align-items: center;
  cursor: pointer;
  display: flex;
  margin-top: 25px;
}

.subscribe-toast-foot > i {
  background: url()
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 24px;
  width: 16px;
}

.subscribe-toast-foot > span {
  margin-left: 10px;
}

.subscribe-toast-foot > em {
  font-size: 18px;
  margin-left: 5px;
}

.subscribe-line {
  background-color: #e6e8eb;
  height: 1px;
  margin-top: 30px;
}

.subscribe-content-tag {
  align-items: center;
  display: flex;
  justify-content: space-between;
  line-height: 32px;
  margin-top: 30px;
  position: relative;
}

.subscribe-content-tag-left-disabled {
  cursor: auto !important;
}
.subscribe-content-tag-left {
  align-items: center;
  background: #f5f6f7;
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 5px;
  width: 22px;
}

.subscribe-content-tag-left > i {
  background: url(https://res.wx.qq.com/t/webmail/webmail/res/static/images/base/style/subscribe/subscribe-circle-left.4d5f774.png)
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.subscribe-content-tag-wrap {
  height: 32px;
  margin: 0 42px;
  overflow: hidden;
  position: relative;
  width: 90%;
}

.subscribe-content-tag-wrap > ul {
  /* list-style: none outside none; */
  display: flex;
  left: 0;
  position: absolute;
  transition: all 0.5s ease 0s;
}

.subscribe-content-tag-wrap > ul > li {
  cursor: pointer;
  margin-right: 12px;
}

.subscribe-content-tag-wrap > ul span {
  background: #f5f6f7;
  border-radius: 2px;
  color: #5c6166;
  display: inline-block;
  height: 32px;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
}
@media screen and (min-width: 1380px) and (max-width: 1680px) {
  .subscribe-content-tag-wrap > ul span {
    width: 55px;
  }
}

.subscribe-content-tag-right {
  align-items: center;
  background: #f5f6f7;
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 5px;
  width: 22px;
}

.subscribe-content-tag-right > i {
  background: url(https://res.wx.qq.com/t/webmail/webmail/res/static/images/base/style/subscribe/subscribe-circle-right.e93840d.png)
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 10px;
  margin-left: 5px;
  width: 10px;
}

.subscribe-content-article {
  margin-top: 35px;
}

.subscribe-content-article > div {
  margin-top: 30px;
}

.subscribe-content-article-label {
  color: #41a553;
  cursor: pointer;
  font-size: 12px;
  margin-bottom: 8px;
}

.subscribe-article {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.subscribe-article-left {
  flex-grow: 1;
  margin-right: 35px;
  overflow: auto;
}

.subscribe-article-left > h3 {
  color: #2e3033;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}

.subscribe-article-left > p {
  -webkit-line-clamp: 3;
  -moz-line-clamp: 3;
  line-clamp: 3;
  box-orient: vertical;
  color: #959da6;
  display: -webkit-box;
  display: -moz-box;
  font-size: 13px;
  height: 69px;
  line-height: 23px;
  max-width: 745px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscribe-article-opera {
  display: flex;
  margin-top: 10px;
  position: relative;
}

.subscribe-article-opera > span {
  align-items: center;
  color: #959da6;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  line-height: 18px;
  width: 60px;
}

.subscribe-article-opera > span:first-child > i {
  background: url()
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 20px;
  margin-right: 5px;
  width: 20px;
}

.subscribe-article-opera > span:nth-child(2) > i {
  background: url()
    no-repeat;
  background-size: contain;
  display: inline-block;
  height: 20px;
  margin-right: 5px;
  width: 20px;
}

ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}
</style>
